<?php

namespace app\validate;

use think\Validate;

class CareerValidate extends Validate
{
    protected $rule = [
        'cid' => 'require|number',
    ];

    protected $message = [
        'cid.require' => 'cid 参数不能为空',
        'cid.number'  => 'cid 必须是数字',
    ];

    protected $scene = [
        'get'    => ['cid'],
        'update' => ['cid'],
    ];
}
